package code;

public class Request {
	int sourceFloor;
	int destinationFloor;
	int timeEntered;
	public Request(int numOfFloors){
		sourceFloor = (int)(Math.random()*numOfFloors+1);
		destinationFloor = (int)(Math.random()*numOfFloors+1);
	}
	public int getSourceFloor() {
		return sourceFloor;
	}
	public void setSourceFloor(int sourceFloor) {
		this.sourceFloor = sourceFloor;
	}
	public int getDestinationFloor() {
		return destinationFloor;
	}
	public void setDestinationFloor(int destinationFloor) {
		this.destinationFloor = destinationFloor;
	}
	public int getTimeEntered() {
		return timeEntered;
	}
	public void setTimeEntered(int timeEntered) {
		this.timeEntered = timeEntered;
	}
	public String getDesc(){
		return "A request arrives from Floor "+sourceFloor+" to Floor "+destinationFloor;
	}
	public String toString(){
		return "("+sourceFloor+","+destinationFloor+","+timeEntered+")";
	}
}
